Skip to content

Conversation

mtjhrc
Copy link
Collaborator

@mtjhrc mtjhrc commented Oct 8, 2025

No description provided.

mtjhrc added 6 commits October 8, 2025 14:30
Make PortDescription a struct instead of an enum with variants. This will allow
for more flexibility when describing behavior of console ports.

Signed-off-by: Matej Hrica <[email protected]>
When using krun_add_virtio_console_default with file descriptors that weren't
normal STDIN/STDOUT/STDERR we could get weird behavior that wasn't in line with
the behavior specified in the header.

This also makes sure to set the change the terminal mode actually associated with
the provided file descriptors instead of changing the terminal mode associated with
normal stdin/stdout/stderr.

Signed-off-by: Matej Hrica <[email protected]>

fixups

Signed-off-by: Matej Hrica <[email protected]>
Previosly we were assuming stdin is terminal using it to determine the terminal
size. Attach a PortTerminalProperties trait object to each port for querying the
correct terminal size.

Note that this still only supports dynamically resizing the first port
(upon SIGWINCH).

Signed-off-by: Matej Hrica <[email protected]>
…nsole

Remove the assertion that the first port must have terminal properties.
This is not actually enforced by the spec, the only problem is you can't use
such virtio console for as the kernel argument.

Signed-off-by: Matej Hrica <[email protected]>
@mtjhrc mtjhrc force-pushed the multiport-console-api branch 2 times, most recently from 89d99c4 to c10f1d1 Compare October 8, 2025 14:47
@mtjhrc mtjhrc force-pushed the multiport-console-api branch from c10f1d1 to 601f67c Compare October 9, 2025 12:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant